#include<bits/stdc++.h>
using namespace std;
int t;
int main(){
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    cin>>t;
    while(t--){
        int a=(rand()+t+(rand())%3)%68741,b=(rand()-(rand())%41)%70000;
        cout<<a<<' '<<b<<endl;
    }

    fclose(stdin);
    fclose(stdout);
    return 0;
}
